package cn.edu.sdjzu.xg.eagle.bysj.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.beanutils.BeanUtils;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.lang.reflect.InvocationTargetException;
import java.util.Date;



@TableName("wenjianfenlei")
public class WenjianfenleiEntity<T> implements Serializable {
	private static final long serialVersionUID = 1L;


	public WenjianfenleiEntity() {
		
	}
	
	public WenjianfenleiEntity(T t) {
		try {
			BeanUtils.copyProperties(this, t);
		} catch (IllegalAccessException | InvocationTargetException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}

	@TableId(type = IdType.AUTO)
	private Long id;

					
	private String wenjianfenlei;
	

	@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat
	private Date addtime;

	public Date getAddtime() {
		return addtime;
	}
	public void setAddtime(Date addtime) {
		this.addtime = addtime;
	}
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public void setWenjianfenlei(String wenjianfenlei) {
		this.wenjianfenlei = wenjianfenlei;
	}

	public String getWenjianfenlei() {
		return wenjianfenlei;
	}

}
